﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dto
{
   public class DrSommer
    {
        private DrSommer() {  }
        private static volatile DrSommer instance;
        public Crossover HowToDoIt;
        public String Template = "10101"; 
        public static DrSommer GetInstance() 
    {
       // DoubleLock
       if (instance == null) 
       {
          lock(m_lock) {  
             if (instance == null) 
             {
                 instance = new DrSommer();
             }   
          }
       }
       return instance;
    }
 
    // Hilfsfeld für eine sichere Threadsynchronisierung
    private static object m_lock = new object();
    }
}
